package com.sxj.springsourcecode.springframework.factory.config;

/**
 * @ProjectName: spring-source-code
 * @Package: com.sxj.springsourcecode.springframework.factory.config
 * @ClassName: BeanPostProcessor
 * @Author: sxj
 * @Description:
 * @Date: 2024/2/22 0:03
 * @Version: 1.0.0
 */
public interface BeanPostProcessor {

    /**
     * 初始化之前，进行后置处理
     * @param bean
     * @param beanName
     */
    Object postProcessBeforeInitialization(Object bean,String beanName);

    /**
     * 初始化之后，进行后置处理
     * @param bean
     * @param beanName
     */
    Object postProcessAfterInitialization(Object bean,String beanName);
}
